home *** CD-ROM | disk | FTP | other *** search
- Path: dragon.solect.com!annex
- From: gallantm@kanservu.ca (Matt Gallant)
- Newsgroups: comp.lang.c++
- Subject: Re: Linking problems with MMIO-functions.
- Date: Mon, 26 Feb 96 07:00:01 GMT
- Organization: KanServU Bureau Aylmer, Ontario Canada
- Message-ID: <4grlo3$b2o@dragon.solect.com>
- References: <4gkmr6$n5b@hasle.sn.no>
- NNTP-Posting-Host: ts1p01.kanservu.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- X-Newsreader: News Xpress 2.0 Beta #0
-
- In article <4gkmr6$n5b@hasle.sn.no>, Ola Nohr <onohr@sn.no> wrote:
- >Hello!
- >
- >My company is porting a Borland 3.1 application to VC++ 4.0 and we
- >have some problems with the MMIO-functions. The error messages we reseive
- >are as follows:
- >
- >... error LNK2001: unresolved external symbol __imp__mmioClose@8
- >... error LNK2001: unresolved external symbol __imp__mmioClose@8
- >... error LNK2001: unresolved external symbol __imp__mmioAscend@12
- >... error LNK2001: unresolved external symbol __imp__mmioAscend@12
- >... error LNK2001: unresolved external symbol __imp__mmioCreateChunk@12
- >
- >What is wrong? I find nothing in the help system...
- >Any ideas ?
- >
- >Thanks in advance....
- >
- >
- >- Ola
- >
-
- Are you including the import library MMSYSTEM.LIB in your MAKE file or
- project?
-
- As you are porting from Borland, you should be aware that Borland usually made
- it common practice to include the import information for most of the Windows
- APIs in one large LIB file (IMPORT.LIB). That way, in most cases, the IDE
- would include this one import library in your project, and it would cover all
- the APIs.
-
- From what I've seen of MS VC++ make file samples and such, Microsoft tends to
- keep its LIB files for API families separate, rather that lumping them
- altogether. Therefore, you must make sure that you've got all the required
- LIBs being given to the linker. From the error messages you report, your code
- is trying to call functions that the linker can't find import records for --
- so it doesn't know what DLL linking information to put into the EXE.
-
- Mind you, I've never actually used VC++. Perhaps it has settings that allow
- you to specify which import libraries to include?? In any case, you need to
- include the import library for the Multimedia functions.
-
- --------------------------------------
- Matt Gallant
- Aylmer, Ontario Canada
-